gtk4.git
11 years agowayland: Fix GtkMenuButton popups in a terrible, hacky way
Jasper St. Pierre [Thu, 15 May 2014 21:20:00 +0000 (17:20 -0400)]
wayland: Fix GtkMenuButton popups in a terrible, hacky way

Since you can't take grabs on unmapped windows, GtkMenu takes a grab on
the menu in a convoluted way: it first grabs another window, shows the
menu window, and then transfers the grab over to the GtkMenu widget.

For normal menubars, this is perfectly fine, as the first window it grabs
is our toplevel, and that gets picked up in our transient path.  For
GtkMenuButton or other spurious uses of gtk_menu_popup, it creates a new
temporary input-only window which it takes the grab on, known as the "grab
transfer window". Since this window isn't a transient-for of our new menu
widget window, the grab isn't noticed when we go to show it, and thus the
menu ends up as a new toplevel.

Add a special hack to GtkMenu and the Wayland backend which lets us notice
this "grab transfer window", and include it in our grab finding path.

It's sort of terrible to have to hack up the widgets instead of just the
backend, but the alternative would be an entirely new window type which is
managed correctly by GDK. I don't want to write that.

11 years agowayland: Clean up function to find the input seat
Jasper St. Pierre [Thu, 15 May 2014 21:14:26 +0000 (17:14 -0400)]
wayland: Clean up function to find the input seat

11 years agowayland: Clean up code to find the correct seat for a window
Jasper St. Pierre [Thu, 15 May 2014 21:12:09 +0000 (17:12 -0400)]
wayland: Clean up code to find the correct seat for a window

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 15 May 2014 18:53:48 +0000 (20:53 +0200)]
Updated POTFILES.in and POTFILES.skip

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 15 May 2014 18:16:58 +0000 (21:16 +0300)]
Updated Hebrew translation

11 years agoinspector: make the classes-list toolbar sensitive
Stefano Facchini [Thu, 15 May 2014 16:23:48 +0000 (18:23 +0200)]
inspector: make the classes-list toolbar sensitive

11 years agoinspector: Fix a typo
Stefano Facchini [Thu, 15 May 2014 16:15:31 +0000 (18:15 +0200)]
inspector: Fix a typo

11 years agoinspector: git ignore template headers
Jasper St. Pierre [Thu, 15 May 2014 15:04:48 +0000 (11:04 -0400)]
inspector: git ignore template headers

11 years agoDrop debug spew
Matthias Clasen [Thu, 15 May 2014 12:47:44 +0000 (08:47 -0400)]
Drop debug spew

11 years agoDon't lie about baselines so much
Matthias Clasen [Thu, 15 May 2014 12:42:24 +0000 (08:42 -0400)]
Don't lie about baselines so much

Let g_object_get (w, "valign",...) report the truth, so that the
inspector can show it without special cases.

11 years agoMinor doc fix
Matthias Clasen [Thu, 15 May 2014 12:42:14 +0000 (08:42 -0400)]
Minor doc fix

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 15 May 2014 10:09:14 +0000 (13:09 +0300)]
Updated Hebrew translation

11 years agoinspector: Added general.ui to Makefile
Yosef Or Boczko [Thu, 15 May 2014 09:52:47 +0000 (12:52 +0300)]
inspector: Added general.ui to Makefile

11 years agoinspector: Drop unused functions
Matthias Clasen [Thu, 15 May 2014 04:14:37 +0000 (00:14 -0400)]
inspector: Drop unused functions

The entire UI is constructed with templates, so the wrapper
constructors are never called, except for gtk_inspector_window_new,
which gets called from the GTK+ code.

11 years agoinspector: Add a general information tab
Matthias Clasen [Thu, 15 May 2014 04:06:43 +0000 (00:06 -0400)]
inspector: Add a general information tab

It is useful to see the GTK+ version, and the various paths
that affect GTK+ operation at runtime.

11 years agoinspector: Merge Visual and Themes tabs
Matthias Clasen [Thu, 15 May 2014 02:53:32 +0000 (22:53 -0400)]
inspector: Merge Visual and Themes tabs

11 years agoinspector: Show GAction information
Matthias Clasen [Wed, 14 May 2014 00:36:02 +0000 (20:36 -0400)]
inspector: Show GAction information

Show the actions that are added to GtkApplication and
GtkApplicationWindows, as well as action groups that are
inserted elsewhere with gtk_widget_insert_action_group.

https://bugzilla.gnome.org/show_bug.cgi?id=730095

11 years agoAdd private GtkWidget api for action groups
Matthias Clasen [Wed, 14 May 2014 00:28:44 +0000 (20:28 -0400)]
Add private GtkWidget api for action groups

Similar to the just-added action muxer api for enumerating
action prefixes and for getting the action group for a
prefix.

https://bugzilla.gnome.org/show_bug.cgi?id=730095

11 years agoGtkActionMuxer: Add getters
Matthias Clasen [Wed, 14 May 2014 00:27:58 +0000 (20:27 -0400)]
GtkActionMuxer: Add getters

Add a way to enumerate all prefixes, and to get the
action group for a prefix.

https://bugzilla.gnome.org/show_bug.cgi?id=730095

11 years agoRevert "Add private api to load a single module"
Matthias Clasen [Thu, 15 May 2014 01:25:28 +0000 (21:25 -0400)]
Revert "Add private api to load a single module"

This reverts commit 7f9a0dbe164f7c731d24c4890dde51391787e966.

11 years agoinspector: stop being a module
Matthias Clasen [Thu, 15 May 2014 01:23:44 +0000 (21:23 -0400)]
inspector: stop being a module

Moving the inspector into libgtk lets use reuse internals without
having to add public API for everything or inventing awkward private
call conventions.

https://bugzilla.gnome.org/show_bug.cgi?id=730095

11 years agoFix GtkCalendar drawing
Matthias Clasen [Thu, 15 May 2014 00:37:57 +0000 (20:37 -0400)]
Fix GtkCalendar drawing

A gtk_widget_get_allocation call was unintentionally
dropped in 5cb43c70f776a7.

11 years agoplacessidebar: use proper canonicalization when checking if home
Cosimo Cecchi [Wed, 14 May 2014 18:19:56 +0000 (11:19 -0700)]
placessidebar: use proper canonicalization when checking if home

Instead of just checking the string. This catches things like double
slashes, relative paths and so on.

https://bugzilla.gnome.org/show_bug.cgi?id=730142

11 years agodocs: Add an index for 3.14 additions
Matthias Clasen [Wed, 14 May 2014 09:50:02 +0000 (05:50 -0400)]
docs: Add an index for 3.14 additions

11 years agoGtkMenuShell: (model binding) show() new items
Ryan Lortie [Wed, 14 May 2014 19:49:30 +0000 (15:49 -0400)]
GtkMenuShell: (model binding) show() new items

We weren't calling show() on newly-added items -- make sure we do that.

This makes the Time menu in bloatpad work properly again.

11 years agoUpdated POTFILES.skip
Piotr Drąg [Wed, 14 May 2014 17:34:55 +0000 (19:34 +0200)]
Updated POTFILES.skip

11 years agoUpdated POTFILES.in
Yosef Or Boczko [Wed, 14 May 2014 11:51:10 +0000 (14:51 +0300)]
Updated POTFILES.in

11 years agoMore deprecation docs for GtkArrow
Matthias Clasen [Wed, 14 May 2014 03:52:47 +0000 (23:52 -0400)]
More deprecation docs for GtkArrow

11 years agoDeprecate GtkArrow
Matthias Clasen [Tue, 13 May 2014 04:03:34 +0000 (00:03 -0400)]
Deprecate GtkArrow

https://bugzilla.gnome.org/show_bug.cgi?id=729564

11 years agoDrop GtkArrow use in GtkTreeView
Matthias Clasen [Wed, 14 May 2014 01:19:09 +0000 (21:19 -0400)]
Drop GtkArrow use in GtkTreeView

This was just an unneeded include anyway.

11 years agoDrop GtkArrow use in GtkPathBar
Matthias Clasen [Wed, 14 May 2014 01:18:45 +0000 (21:18 -0400)]
Drop GtkArrow use in GtkPathBar

This was just an unneeded include anyway.

11 years agoDrop GtkArrow use in GtkMenuToolButton
Matthias Clasen [Wed, 14 May 2014 01:18:25 +0000 (21:18 -0400)]
Drop GtkArrow use in GtkMenuToolButton

This was just an unneeded include anyway.

11 years agoDrop GtkArrow use in GtkTreeViewColumn
Matthias Clasen [Tue, 13 May 2014 03:56:37 +0000 (23:56 -0400)]
Drop GtkArrow use in GtkTreeViewColumn

This is in preparation for GtkArrow getting deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=729564

11 years agoDrop GtkArrow use in GtkToolbar
Matthias Clasen [Tue, 13 May 2014 03:51:39 +0000 (23:51 -0400)]
Drop GtkArrow use in GtkToolbar

This is in preparation for GtkArrow getting deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=729564

11 years agoDrop GtkArrow use in GtkMenuButton
Matthias Clasen [Tue, 13 May 2014 03:49:28 +0000 (23:49 -0400)]
Drop GtkArrow use in GtkMenuButton

This is in preparation for GtkArrow getting deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=729564

11 years agoDrop GtkArrow use in GtkComboBox
Matthias Clasen [Tue, 13 May 2014 03:35:52 +0000 (23:35 -0400)]
Drop GtkArrow use in GtkComboBox

This is in preparation for GtkArrow getting deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=729564

11 years agotestsuite: Add rtl icontheme tests
Benjamin Otte [Wed, 14 May 2014 02:52:55 +0000 (04:52 +0200)]
testsuite: Add rtl icontheme tests

11 years agoicontheme: Add a test for lookup order
Matthias Clasen [Wed, 14 May 2014 02:13:58 +0000 (04:13 +0200)]
icontheme: Add a test for lookup order

Add tests that verify the expected lookup order between -symbolic,
-rtl/-ltr and generic fallback.

11 years agoGtkIconTheme: Support looking up directional variants
Matthias Clasen [Wed, 14 May 2014 01:34:49 +0000 (03:34 +0200)]
GtkIconTheme: Support looking up directional variants

Add two new icon lookup flags, GTK_ICON_LOOKUP_DIR_LTR and _RTL,
which tell GtkIconTheme to look for icon variants which have a
-ltr or -rtl suffix. GtkIconHelper adds these lookup flags when
looking up icons.

Note that due to the way this overlaps with symbolic icon lookup,
directional variants of symbolic icons must be called -symbolic-rtl, not
-rtl-symbolic.

https://bugzilla.gnome.org/show_bug.cgi?id=729980

11 years agoicontheme: Split out symbolicness tests into own function
Benjamin Otte [Tue, 13 May 2014 13:50:05 +0000 (15:50 +0200)]
icontheme: Split out symbolicness tests into own function

11 years agotestsuite: Add icontheme tests for generic fallback
Matthias Clasen [Tue, 13 May 2014 13:23:53 +0000 (15:23 +0200)]
testsuite: Add icontheme tests for generic fallback

11 years agoicontheme: Do a failed lookup at the beginning
Benjamin Otte [Tue, 13 May 2014 13:07:40 +0000 (15:07 +0200)]
icontheme: Do a failed lookup at the beginning

Do this to catch the g_warning() that the icontheme code emits the first
time a lookup fails.

11 years agotestsuite: Add more icontheme tests
Benjamin Otte [Tue, 13 May 2014 01:17:15 +0000 (03:17 +0200)]
testsuite: Add more icontheme tests

Check that the lookup order works properly when forcing either symbolic
or regular icons.

11 years agotestsuite: Add a basic icontheme test
Benjamin Otte [Mon, 12 May 2014 16:19:47 +0000 (18:19 +0200)]
testsuite: Add a basic icontheme test

Most of the work here is creating the infrastructure to have a custom
icon theme to add icons to and run tests against.

11 years agoreftests: Add a test for recent commits
Benjamin Otte [Mon, 12 May 2014 02:51:35 +0000 (04:51 +0200)]
reftests: Add a test for recent commits

Check that icon-shadow is not affected by -gtk-icon-transform.

11 years agothemingengine: Don't transform icon shadows
Benjamin Otte [Mon, 12 May 2014 02:14:10 +0000 (04:14 +0200)]
themingengine: Don't transform icon shadows

.. by -gtk-icon-transform. We want a rotating spinner's shadow to still
be directed towards bottom right.

11 years agocss: Change CssTransformValue API
Benjamin Otte [Mon, 12 May 2014 01:51:14 +0000 (03:51 +0200)]
css: Change CssTransformValue API

Provide API to query the matrix instead of API that applies the matrix
directly. This makes the API more flexible.

See the commits implementing shadows.

11 years agothemingengine: Draw "icon-shadow" on icons
Benjamin Otte [Mon, 12 May 2014 01:16:07 +0000 (03:16 +0200)]
themingengine: Draw "icon-shadow" on icons

11 years agoreftest: Add tests for the new vfuncs
Benjamin Otte [Sun, 11 May 2014 02:15:43 +0000 (04:15 +0200)]
reftest: Add tests for the new vfuncs

This test is a bit brittle because it doesn't properly rely on CSS
properties but needs to use widget style properties to turn of extra
sizing from widgets.

It might break in the future when porting widgets to draw properly.

11 years agothemingengine: Draw icons for arrows
Benjamin Otte [Sun, 11 May 2014 01:59:32 +0000 (03:59 +0200)]
themingengine: Draw icons for arrows

11 years agothemingengine: Use icons for expanders
Benjamin Otte [Sun, 11 May 2014 01:52:20 +0000 (03:52 +0200)]
themingengine: Use icons for expanders

11 years agothemingengine: Implement icon drawing for checks and options
Benjamin Otte [Sun, 11 May 2014 01:40:10 +0000 (03:40 +0200)]
themingengine: Implement icon drawing for checks and options

11 years agoicontheme: Don't force missing icon
Benjamin Otte [Sun, 11 May 2014 00:30:50 +0000 (02:30 +0200)]
icontheme: Don't force missing icon

When forcing regular or symbolic icons, fall back to the default
specified icons. This ensures that when no symbolic icon is present, an
icon will still appear - the regular one.

11 years agoreftests: Add a reftest for -gtk-icon-style
Benjamin Otte [Sat, 10 May 2014 19:50:26 +0000 (21:50 +0200)]
reftests: Add a reftest for -gtk-icon-style

11 years agoiconhelper: Respect -gtk-icon-style
Benjamin Otte [Sat, 10 May 2014 19:50:37 +0000 (21:50 +0200)]
iconhelper: Respect -gtk-icon-style

This allows styling of entry icons, treeview pixbufs and images. They
can now be forced to be symbolic or regular.

11 years agoAPI: icontheme: Add 2 new GtkIconLookupFlags
Benjamin Otte [Sat, 10 May 2014 13:35:12 +0000 (15:35 +0200)]
API: icontheme: Add 2 new GtkIconLookupFlags

GTK_ICON_LOOKUP_FORCE_REGULAR and GTK_ICON_LOOKUP_FORCE_SYMBOLIC can be
used to force a regular or symbolic icon to be loaded, even if the icon
names specify a different version.

This is intended to support the CSS property -gtk-icon-style.

11 years agocss: Add a -gtk-icon-style property
Benjamin Otte [Tue, 6 May 2014 14:06:33 +0000 (16:06 +0200)]
css: Add a -gtk-icon-style property

The values can be:
  "requested" - the style as requested
  "regular"   - use a regular full-color icon
  "symbolic"  - use a symbolic icon

The property defaults to "requested", so no changes should be seen
unless CSS overrides it.
It is also inherited, so that using this CSS
  .toolbar { -gtk-icon-style: symbolic; }
is enough to force the whole toolbar to use symbolic icons.

11 years agospinner: Don't arbitrarily limit sizes anymore
Benjamin Otte [Mon, 5 May 2014 13:32:34 +0000 (15:32 +0200)]
spinner: Don't arbitrarily limit sizes anymore

This essentially reverts b33877e1737a7799b29f5b3a3d291e55e95e8436

Now that we can theme the spinner as a real icon using -gtk-icontheme()
this limit is no longer necessary.

11 years agocss: Add -gtk-icon-transform property
Benjamin Otte [Mon, 5 May 2014 13:28:18 +0000 (15:28 +0200)]
css: Add -gtk-icon-transform property

This property allows transforming icons and is mainly intended to be
used for spinner animations.

11 years agocss: Add GtkCssTransformValue
Benjamin Otte [Mon, 5 May 2014 12:48:27 +0000 (14:48 +0200)]
css: Add GtkCssTransformValue

The value implements the 2D parts of CSS transforms. See
  http://www.w3.org/TR/css3-transforms/
For the specification.

All it does is give us an expressive way to define Cairo matrices (and
their transforms)

11 years agothemingengine: Draw icons for spinners
Benjamin Otte [Fri, 2 May 2014 19:47:54 +0000 (21:47 +0200)]
themingengine: Draw icons for spinners

If the -gtk-icon-source property is not set to "none" (the default),
draw it as the spinner icon. Otherwise fall back to previous methods.

11 years agocss: Add -gtk-icon-source property
Benjamin Otte [Fri, 2 May 2014 19:28:36 +0000 (21:28 +0200)]
css: Add -gtk-icon-source property

This is to be used for rendering icon content via CSS, such as spinners
or checkboxes.

11 years agocss: Add support for -gtk-icontheme("icon-name")
Benjamin Otte [Thu, 1 May 2014 17:50:22 +0000 (19:50 +0200)]
css: Add support for -gtk-icontheme("icon-name")

This allows using icons from the icontheme as images in CSS. The
reasoning is that this allows to give the image control about how it's
scaled (by using the icon theme's scaling method. So we can get crisp
images at different resolutions.

11 years agoGtkButton: Deprecated setters and getters as well
Matthias Clasen [Wed, 14 May 2014 02:19:30 +0000 (22:19 -0400)]
GtkButton: Deprecated setters and getters as well

gtk_button_set/get_alignment should be deprecated together
with the properties they are setters/getters for.

11 years agowayland: Ack the configure immediately
Jasper St. Pierre [Tue, 13 May 2014 20:21:11 +0000 (16:21 -0400)]
wayland: Ack the configure immediately

11 years agogtk3-demo: Don't leak in the sizegroup example
Matthias Clasen [Tue, 13 May 2014 19:50:23 +0000 (15:50 -0400)]
gtk3-demo: Don't leak in the sizegroup example

Nobody was cleaning up the size group.
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=645966

11 years agoinspector: Show text view subobjects in the tree
Matthias Clasen [Tue, 13 May 2014 18:43:19 +0000 (14:43 -0400)]
inspector: Show text view subobjects in the tree

11 years agoinspector: Add a setting to disable the keybinding
Matthias Clasen [Tue, 13 May 2014 18:16:53 +0000 (14:16 -0400)]
inspector: Add a setting to disable the keybinding

This will be needed for lockdown, e.g. on the login screen.
https://bugzilla.gnome.org/show_bug.cgi?id=730007

11 years agoinspector: All to turn it on programmatically
Matthias Clasen [Tue, 13 May 2014 18:08:15 +0000 (14:08 -0400)]
inspector: All to turn it on programmatically

Export gtk_window_set_interactive_debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=730008

11 years agoAdd some documentation to the filechooser schema
Matthias Clasen [Tue, 13 May 2014 16:37:39 +0000 (12:37 -0400)]
Add some documentation to the filechooser schema

11 years agoAdd some documentation to the colorchooser schema
Matthias Clasen [Tue, 13 May 2014 16:28:02 +0000 (12:28 -0400)]
Add some documentation to the colorchooser schema

11 years agoUpdated POTFILES.in
Piotr Drąg [Tue, 13 May 2014 17:33:15 +0000 (19:33 +0200)]
Updated POTFILES.in

11 years agoMinor documentation fix
Matthias Clasen [Tue, 13 May 2014 15:55:57 +0000 (11:55 -0400)]
Minor documentation fix

Two stray references, pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=730035

11 years agoFix a leftover deprecation warning
Matthias Clasen [Tue, 13 May 2014 15:55:45 +0000 (11:55 -0400)]
Fix a leftover deprecation warning

11 years agoAdd a test for the previous fix
Matthias Clasen [Tue, 13 May 2014 15:55:01 +0000 (11:55 -0400)]
Add a test for the previous fix

11 years agotreestore: Fix segfault when reordering non-existing children
Olivier Brunel [Tue, 15 Oct 2013 13:07:28 +0000 (15:07 +0200)]
treestore: Fix segfault when reordering non-existing children

Calling gtk_tree_store_reorder() on a node without children would cause a
segfault; Fixes https://bugzilla.gnome.org/show_bug.cgi?id=698396

Signed-off-by: Olivier Brunel <jjk@jjacky.com>
11 years agoMinor doc fixup
Matthias Clasen [Tue, 13 May 2014 15:42:31 +0000 (11:42 -0400)]
Minor doc fixup

11 years agoImprove the GTK_STYLE_PROVIDER_PRIORITY_FALLBACK docs
Matthias Clasen [Tue, 13 May 2014 15:19:49 +0000 (11:19 -0400)]
Improve the GTK_STYLE_PROVIDER_PRIORITY_FALLBACK docs

Explain possible gotcha with catch-all rules.

11 years agoAdd an alternative keybinding for the inspector
Matthias Clasen [Tue, 13 May 2014 15:04:43 +0000 (11:04 -0400)]
Add an alternative keybinding for the inspector

Control-Shift-I is already used for similar things in many
applications, so provide Control-Shift-D as an alternative.
https://bugzilla.gnome.org/show_bug.cgi?id=730043

11 years agoAvoid deprecation warnings
Matthias Clasen [Tue, 13 May 2014 12:45:35 +0000 (08:45 -0400)]
Avoid deprecation warnings

This is testing deprecated API, after all...

11 years agoDeprecate GtkMisc
Matthias Clasen [Tue, 13 May 2014 12:45:00 +0000 (08:45 -0400)]
Deprecate GtkMisc

This has been dangling ever since 3.0.

11 years agoDrop most uses of GtkMisc in tests
Matthias Clasen [Tue, 13 May 2014 11:28:20 +0000 (07:28 -0400)]
Drop most uses of GtkMisc in tests

Replace them by GtkWidget h/valign. The only remaining uses
are those where a size group is involved; they can't be replaced
until GtkLabel stops looking at GtkMisc alignment for size
allocation.

11 years agoGtkLabel: Drop references to GtkMisc
Matthias Clasen [Tue, 13 May 2014 11:14:11 +0000 (07:14 -0400)]
GtkLabel: Drop references to GtkMisc

GtkMisc is heading for retirement. Point to the GtkWidget h/valign
properties instead.

11 years agoGtkMenuItem: Stop using gtk_misc_set_alignment
Matthias Clasen [Tue, 13 May 2014 11:04:06 +0000 (07:04 -0400)]
GtkMenuItem: Stop using gtk_misc_set_alignment

GtkMisc is heading for deprecation. Just use GtkWidget h/valign.
https://bugzilla.gnome.org/show_bug.cgi?id=650762

11 years agoInspector: Fix make dist
Rico Tzschichholz [Tue, 13 May 2014 10:26:00 +0000 (12:26 +0200)]
Inspector: Fix make dist

11 years agoGtkButton: Deprecate xalign and yalign properties
Matthias Clasen [Tue, 13 May 2014 10:16:39 +0000 (06:16 -0400)]
GtkButton: Deprecate xalign and yalign properties

These are directly passed through to GtkMisc/GtkAlignment, which
are both on the way to deprecation.

11 years agogtk3-demo: Fix up toolpalette demo
Matthias Clasen [Tue, 13 May 2014 10:15:56 +0000 (06:15 -0400)]
gtk3-demo: Fix up toolpalette demo

The demo appears pretty broken, because some icons are not fitting
well in the grid. Just skip the problematic icons.

11 years agowayland: Update to latest xdg-shell protocol
Jasper St. Pierre [Sat, 12 Apr 2014 00:31:27 +0000 (17:31 -0700)]
wayland: Update to latest xdg-shell protocol

11 years agogdk: Add new _gdk_set_window_state
Jasper St. Pierre [Sat, 12 Apr 2014 00:04:25 +0000 (17:04 -0700)]
gdk: Add new _gdk_set_window_state

Wayland's mechanism tells us all of our new states, rather than
telling us which ones were added and removed. Add a new private
interface so that we can simply specify the new states as a
bitfield directly rather than having to compute which ones were
added and removed.

11 years agoMinor documentation edit
Matthias Clasen [Tue, 13 May 2014 02:58:47 +0000 (22:58 -0400)]
Minor documentation edit

11 years agogtk3-demo: Drop unneeded gtk_init() call
Matthias Clasen [Tue, 13 May 2014 02:38:37 +0000 (22:38 -0400)]
gtk3-demo: Drop unneeded gtk_init() call

GtkApplication is doing this for us.

11 years agogtk-demo: Don't use margin-left/right
Matthias Clasen [Tue, 13 May 2014 02:32:51 +0000 (22:32 -0400)]
gtk-demo: Don't use margin-left/right

Instead, use margin-start/end, which are the non-deprecated
replacements.

11 years agoGtkPopover: inherit actions from the relative_to widget
Owen W. Taylor [Mon, 12 May 2014 20:25:25 +0000 (16:25 -0400)]
GtkPopover: inherit actions from the relative_to widget

Make the relative_to widget the parent for a GtkPopover's
GtkActionGroup. This, for example, makes the menu model of a
GtkMenuButton find action groups attached to the button.

https://bugzilla.gnome.org/show_bug.cgi?id=729915

11 years agogtk_text_buffer_create_tag(): returns NULL on failure
Sébastien Wilmet [Thu, 4 Apr 2013 11:30:42 +0000 (13:30 +0200)]
gtk_text_buffer_create_tag(): returns NULL on failure

Returns NULL in case of a duplicated tag name in the tag table. It is
still a programmer error to duplicate a name, but if it happens the
behavior is a little nicer (and hopefully doesn't crash).

https://bugzilla.gnome.org/show_bug.cgi?id=614717

11 years agoAdd boolean return value for gtk_text_tag_table_add()
Sébastien Wilmet [Thu, 4 Apr 2013 11:22:38 +0000 (13:22 +0200)]
Add boolean return value for gtk_text_tag_table_add()

The user doesn't need to check the return value, because if FALSE is
returned it is a programmer error. But it permits a nicer behavior for
gtk_text_buffer_create_tag() in case of failure.

https://bugzilla.gnome.org/show_bug.cgi?id=614717

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Mon, 12 May 2014 14:35:46 +0000 (16:35 +0200)]
Updated POTFILES.in and POTFILES.skip

We still need .ui.h files for the inspector.

11 years agoMove GtkIconFactory to deprecated section in the docs
Matthias Clasen [Mon, 12 May 2014 02:03:27 +0000 (22:03 -0400)]
Move GtkIconFactory to deprecated section in the docs

Just catching up with reality.

11 years agoGtkIconFactory: Remove outdated information from the docs
Matthias Clasen [Mon, 12 May 2014 02:01:37 +0000 (22:01 -0400)]
GtkIconFactory: Remove outdated information from the docs

The stock browser was removed from gtk3-demo.

11 years agoDeprecate GtkNumerableIcon
Matthias Clasen [Mon, 12 May 2014 01:49:21 +0000 (21:49 -0400)]
Deprecate GtkNumerableIcon

It was a failed experiment, it is basically unused, and it complicates
code in GtkIconTheme that we want to rework.

11 years agoRemove a redundant check
Matthias Clasen [Sun, 11 May 2014 15:56:22 +0000 (11:56 -0400)]
Remove a redundant check

gtk_widget_show/_hide already check the widget's visibility.

https://bugzilla.gnome.org/show_bug.cgi?id=728135